/*
 * @Author       : qiye
 * @LastEditors: qiye
 * @description  :
 * @updateInfo   :
 * @Date         : 2022-12-15 09:52:50
 * @LastEditTime: 2023-10-23 14:02:07
 */
import type { ISearchForm } from '@/global/enums/search'
export const useFields = async () => {
  const defKeys = useTableKey()

  const fields: ISearchForm[] = [{
    key: 'name',
    value: '',
    label: '英文标识',
    show: true,
    minWidth: 100,
    search: true
  }, {
    key: 'title',
    value: '',
    label: '菜单名称',
    show: true,
    minWidth: 100,
    search: true
  },
  {
    key: 'description',
    value: '',
    label: '描述',
    show: true
  }, {
    key: 'status',
    value: '',
    label: '状态',
    show: true,
    minWidth: 100,
    search: false,
    tableSlot: 'status'
  },
  ...defKeys,
  {
    key: '',
    label: '操作',
    show: true,
    width: 148,
    tableSlot: 'operate',
    fixed: 'right',
    showOverflowTooltip: false
  }
  ]

  return fields
}
